package com.anne.fish.service.impl;

import com.anne.fish.dao.InfoDao;
import com.anne.fish.model.Info;
import com.anne.fish.service.InfoManager;
import com.anne.fish.service.impl.GenericManagerImpl;
import com.anne.fish.webapp.formbean.InfoSearch;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import javax.jws.WebService;

@Service("infoManager")
@WebService(serviceName = "InfoService", endpointInterface = "com.anne.fish.service.InfoManager")
public class InfoManagerImpl extends GenericManagerImpl<Info, Long> implements InfoManager {
    InfoDao infoDao;

    @Autowired
    public InfoManagerImpl(InfoDao infoDao) {
        super(infoDao);
        this.infoDao = infoDao;
    }
    
    public List<Info> findBySearch(InfoSearch infoSearch){
    	return  this.infoDao.findBySearch(infoSearch);
    }

	public Integer getCountBySearch(InfoSearch infoSearch) {
		// TODO Auto-generated method stub
		return this.infoDao.getCountBySearch(infoSearch);
	}
}